Skip to content

GH-49751: [Python] Add raw fd support to pa.OSFile - #49750

Merged
pitrou merged 6 commits into
apache:mainfrom
alippai:codex/add-raw-fd-support-to-pyarrow.osfile
Apr 22, 2026
Merged

GH-49751: [Python] Add raw fd support to pa.OSFile#49750
pitrou merged 6 commits into
apache:mainfrom
alippai:codex/add-raw-fd-support-to-pyarrow.osfile

Conversation

@alippai

@alippai alippai commented Apr 14, 2026

Copy link
Copy Markdown
Contributor

Rationale for this change

The goal of the MR is to support the low level python raw fds (os.open())

What changes are in this PR?

As an alternative to the str path, the pa.OSFile accepts the int parameter as well.

Are these changes tested?

Yes, new end-to-end tests were added

Are there any user-facing changes?

Yes, the API is extended with a new parameter type

This MR was created by Codex Cloud.

@alippai
alippai requested review from AlenkaF, raulcd and rok as code owners April 14, 2026 23:16
@github-actions

Copy link
Copy Markdown

Thanks for opening a pull request!

If this is not a minor PR. Could you open an issue for this pull request on GitHub? https://github.com/apache/arrow/issues/new/choose

Opening GitHub issues ahead of time contributes to the Openness of the Apache Arrow project.

Then could you also rename the pull request title in the following format?

GH-${GITHUB_ISSUE_ID}: [${COMPONENT}] ${SUMMARY}

or

MINOR: [${COMPONENT}] ${SUMMARY}

See also:

@alippai alippai changed the title [Python] Add raw fd support to pa.OSFile GH-49751: [Python] Add raw fd support to pa.OSFile Apr 14, 2026
@github-actions

Copy link
Copy Markdown

⚠️ GitHub issue #49751 has been automatically assigned in GitHub to PR creator.

@alippai

alippai commented Apr 16, 2026

Copy link
Copy Markdown
Contributor Author

@pitrou I see you have changes in the files affected. Is this a good direction?

@pitrou pitrou left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, just one comment

Comment thread python/pyarrow/io.pxi
@github-actions github-actions Bot added awaiting committer review Awaiting committer review and removed awaiting review Awaiting review labels Apr 21, 2026
@alippai
alippai requested a review from pitrou April 21, 2026 13:59
@pitrou

pitrou commented Apr 22, 2026

Copy link
Copy Markdown
Member

Thanks a lot @alippai , I'll merge now.

@pitrou
pitrou merged commit 210a856 into apache:main Apr 22, 2026
17 of 18 checks passed
@pitrou pitrou removed the awaiting committer review Awaiting committer review label Apr 22, 2026
@github-actions github-actions Bot added the awaiting committer review Awaiting committer review label Apr 22, 2026
@alippai

alippai commented Apr 22, 2026

Copy link
Copy Markdown
Contributor Author

Thanks, @pitrou!

@conbench-apache-arrow

Copy link
Copy Markdown

After merging your PR, Conbench analyzed the 3 benchmarking runs that have been run so far on merge-commit 210a856.

There were no benchmark performance regressions. 🎉

The full Conbench report has more details. It also includes information about 8 possible false positives for unstable benchmarks that are known to sometimes produce them.

Mottl pushed a commit to Mottl/arrow that referenced this pull request May 26, 2026
### Rationale for this change
The goal of the MR is to support the low level python raw fds (`os.open()`) 

### What changes are in this PR?
As an alternative to the `str` path, the `pa.OSFile` accepts the `int` parameter as well.

### Are these changes tested?
Yes, new end-to-end tests were added

### Are there any user-facing changes?
Yes, the API is extended with a new parameter type

This MR was created by Codex Cloud.
* GitHub Issue: apache#49751

Authored-by: Ádám Lippai <adam@rigo.sk>
Signed-off-by: Antoine Pitrou <antoine@python.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants